﻿var React = require('react');
var CustomerInfo = React.createClass({

    propTypes: {
        initialData: React.PropTypes.object
    },
    getInitialState: function () {
        return { data: this.props.initialData };
    },
    render: function () {
        return (
            <div className="container">
                <table className="table table-bordered">
                    <tbody>
                        <tr >
                            <td className="customerinfohead text-right ">手机：</td>
                            <td className="active">{this.state.data.Cellno}</td>
                        </tr>
                        <tr>
                            <td className="customerinfohead text-right ">所在地：</td>
                            <td className="active">{this.state.data.Area}</td>
                        </tr>
                        <tr>
                            <td className="customerinfohead text-right ">E-MAIL：</td>
                            <td className="active" >{this.state.data.Email}</td>
                        </tr>
                        <tr>
                            <td className="customerinfohead text-right ">性别：</td>
                            <td className="active">{this.state.data.Sex}</td>
                        </tr>

                        <tr>
                            <td className="customerinfohead text-right ">我的生日：</td>
                            <td className="active">{this.state.data.Glsr}</td>
                        </tr>
                         <tr>
                            <td className="customerinfohead text-right ">年龄段：</td>
                            <td className="active">{this.state.data.Nldsm}</td>
                         </tr>
                    </tbody>
                </table>

            </div>

        );
    }
});
module.exports = CustomerInfo;

